Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Partially fixes #502 . (Will have to check after 0.3.0 because behavior will change)
Description of the problem being solved:
PoE2 treats the active portion of totem skills as separate "totemified" skills, rather than additional stat sets of the same skill. This lead to several problems because totem base stats are only available on the "base" skill (which in case of "Ancestral Warrior Totem" is on entirely different gem, as well)
List of fixed issues:
levelRequirement = 0leading to crashes when trying to determine totem level in some casesskillTotemIdwas not working because the stat was not present on the "totemified" skilltotemflag{ "base_number_of_totems_allowed", 1 }, making the"Base"mod inCalcSetupredundantAdditional Notes:
alt_attack_containerbehavior which made totems have their own weapon-independent attack stats. Since this behavior will be changed in 0.3.0 in a few days, it makes no sense to include here, but I have it saved somewhere in case we ever have to useralt_attack_containerfor something else.Steps taken to verify a working solution:
Link to a build that showcases this PR:
https://maxroll.gg/poe2/pob/qaitk0qc
Before screenshot:
No totem stats

No increase from totem damage (Sunder on Ancestral Warrior Totem)

After screenshot:
now with totem stats


Increase from totem damage works now (Sunder on Ancestral Warrior Totem)
